import Vue from 'vue'
import App from './App.vue'
import router from './routers'
import store from './stores'
import vueg from 'vueg'
import http from './service/myHttp.js'
import url from './service/url.js'

import Spinner from 'vue-spinkit' //加载效果组件
import Meta from 'vue-meta' //头部处理库

// 真机调试工具
let vConsole
import VConsole from 'vconsole'
if (process.env.NODE_ENV == 'development') {
    vConsole = new VConsole();
} else {
    // 正式环境测试用，到生产环境时请屏蔽
    // vConsole = new VConsole();
}

Vue.component('Spinner', Spinner)
Vue.use(Meta)

Vue.config.productionTip = false

// 全局事件总线
Vue.prototype.$EventBus = new Vue()

// 全局http和url
Vue.prototype.$http = http
Vue.prototype.$urls = url


Vue.use(vueg, router, {
  shadow:false
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
